import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  BaseEntity,
  Index,
} from 'typeorm';
@Entity('role')
export default class RoleEntity extends BaseEntity {
  @PrimaryGeneratedColumn('increment', { type: 'bigint', comment: 'id编号' })
  id: number;

  @Column({ nullable: true, comment: 'name' })
  name: string;

  // 0 管理员 1 普通用户 2 访客
  @Column({ comment: '角色' })
  type: number;
}
